<!doctype html>
<html lang="zh-CN">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
  <title>Bootstrap 101 Template</title>
  <!-- Bootstrap -->
  <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" />

  <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
  <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
  <!--[if lt IE 9]>
      <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
  <style>
    * {
      padding: 0;
      margin: 0;
      list-style: none;
    }

    li {
      border: 1px solid #666;
    }

    .box div{
      border: 1px solid pink;
    }

    .rows div{
      width: 20%;
      float: left;
    }
  </style>
</head>

<body>
  <div class="container" style="border: 1px solid red;">
    <ul class="row">
      <li class="col-xs-1">1</li>
      <li class="col-xs-1">2</li>
      <li class="col-xs-1">3</li>
      <li class="col-xs-1">4</li>
      <li class="col-xs-1">5</li>
      <li class="col-xs-1">6</li>
      <li class="col-xs-1">7</li>
      <li class="col-xs-1">8</li>
      <li class="col-xs-1">9</li>
      <li class="col-xs-1">10</li>
      <li class="col-xs-1">11</li>
      <li class="col-xs-1">12</li>
    </ul>
    <ul class="row">
      <li class="col-xs-3">1</li>
      <li class="col-xs-3">2</li>
      <li class="col-xs-3">3</li>
      <li class="col-xs-3">4</li>
      <li class="col-xs-3">5</li>
      <li class="col-xs-3">6</li>
      <li class="col-xs-3">7</li>
      <li class="col-xs-3">8</li>
      <li class="col-xs-3">9</li>
      <li class="col-xs-3">10</li>
      <li class="col-xs-3">11</li>
      <li class="col-xs-3">12</li>
    </ul>
    <ul class="row">
      <li class="col-xs-4">1</li>
      <li class="col-xs-4">2</li>
      <li class="col-xs-4">3</li>
    </ul>
    <ul class="row">
      <li class="col-xs-4">1</li>
      <li class="col-xs-4">2</li>
      <li class="col-xs-4">3</li>
    </ul>

    <ul class="row" style="border: 1px solid green;">
      <li class="col-xs-4 col-sm-6">1</li>
      <li class="col-xs-4 col-sm-6">2</li>
      <li class="col-xs-4 col-sm-6">3</li>
    </ul>

    <div class="row box">
       <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">1</div>
       <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">1</div>
       <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">1</div>
       <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">1</div>
       <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">1</div>
       <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">1</div>
    </div>
    <div class="rows">
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
    </div>
  </div>



  <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
  <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
  <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js"
   ></script>
</body>

</html>